<!--title-->
<div class="mnav1">
	<div class="m_nav">
		<div class="nav_left">
			<em class="home_icon"><?=$this->sys_name?></em><span>&nbsp;&gt;&nbsp;</span><font><?=$this->title?></font>
		</div>
	</div>
</div>
<div class="content-table">
    <form action="/maozhua/app-yc" name="form1" method="GET">
        登录日期：
        <input type="text" name="date_start" id="date_start" value="<?=$this->date_start;?>" autocomplete="off" style="width: 100px"> ~ <input type="text" name="date_end" value="<?=$this->date_end;?>" id="date_end" autocomplete="off" style="width: 100px">
        状态：
        <select name="status" onload="this.value=<?=$this->status?>">
            <option value="">请选择</option>
            <option value="2" <?php if($this->status==2){echo "selected=selected";}?>>已签到</option>
            <option value="1" <?php if($this->status==1){echo "selected=selected";}?>>签到失败</option>
        </select>    
        关键字：<input type="text" name="keyword" <?php if($this->keyword){echo "value='".$this->keyword."'";}?> />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" class="button" value="搜索" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="button" class="button-cancle" value="清空搜索条件" onclick="location.href='?';" />
    </form>
</div>
<div class="content-table">
<div class="content-table-title"><?=$this->title?></div>
<br />
<table>
  <tr>
    <th>公司名称</th>
    <th>尝试登录时间</th>
    <th>状态</th>
  </tr>
  <?php if($this->data):?>
  <?php foreach($this->data as $d):?>
  <tr>
    <td><?=$d['user_name']?></td>
    <td><?=$d['loginTime']?></td>
    <td><?=$d['msg']?></td>
  </tr>
  <?php endforeach;?>
  <?php endif;?>
</table>
<br /><br />
<script>
    var date = new Date();//获取当前时间
    date.setDate(date.getDate()-1);

    $(function() {
        $( "#date_start" ).datepicker({ dateFormat: 'yy-mm-dd'}).datepicker("setDate", "<?=$this->date_start?>");
    });

    $(function() {
        $( "#date_end" ).datepicker({ dateFormat: 'yy-mm-dd'}).datepicker("setDate", "<?=$this->date_end?>");
    });
</script>